PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Geometric / Tunnel Spheres / xtramartin (459).milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=2 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.980 |
| 8 | fDecay=0.500 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=6 |
| 13 | bAdditiveWaves=1 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=1 |
| 16 | bModWaveAlphaByVolume=1 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=0 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.001 |
| 26 | fWaveScale=2.103 |
| 27 | fWaveSmoothing=0.540 |
| 28 | fWaveParam=0.380 |
| 29 | fModWaveAlphaStart=0.810 |
| 30 | fModWaveAlphaEnd=1.400 |
| 31 | fWarpAnimSpeed=1.459 |
| 32 | fWarpScale=2.007 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=0.99990 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01000 |
| 42 | sx=0.99990 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.000 |
| 45 | wave_g=0.000 |
| 46 | wave_b=0.000 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.000 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=1.000 |
| 53 | ob_a=0.300 |
| 54 | ib_size=0.260 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=1.850 |
| 64 | mv_r=0.500 |
| 65 | mv_g=0.500 |
| 66 | mv_b=0.500 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.000 |
| 75 | wavecode_0_enabled=1 |
| 76 | wavecode_0_samples=442 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=1 |
| 81 | wavecode_0_bAdditive=1 |
| 82 | wavecode_0_scaling=0.89152 |
| 83 | wavecode_0_smoothing=0.00000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=1.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=1.000 |
| 88 | wave_0_per_point1=x = .4+sample*.2 ; |
| 89 | wave_0_per_point2=y = .5+ value2*.01*q22; |
| 90 | wave_0_per_point3= |
| 91 | wave_0_per_point4=a = .5*q24*((q27+1)%2); |
| 92 | wave_0_per_point5=r = 0.2;b=1; g =.6; |
| 93 | wavecode_1_enabled=1 |
| 94 | wavecode_1_samples=512 |
| 95 | wavecode_1_sep=0 |
| 96 | wavecode_1_bSpectrum=0 |
| 97 | wavecode_1_bUseDots=0 |
| 98 | wavecode_1_bDrawThick=1 |
| 99 | wavecode_1_bAdditive=0 |
| 100 | wavecode_1_scaling=0.89152 |
| 101 | wavecode_1_smoothing=0.00000 |
| 102 | wavecode_1_r=1.000 |
| 103 | wavecode_1_g=1.000 |
| 104 | wavecode_1_b=1.000 |
| 105 | wavecode_1_a=0.100 |
| 106 | wave_1_per_point1=y = .4+sample*.2 ; |
| 107 | wave_1_per_point2=x = .5+ value2*.01*q22; |
| 108 | wave_1_per_point3= |
| 109 | wave_1_per_point4=a = .6*q24*((q27)%2); |
| 110 | wave_1_per_point5=r = 0.2;b=1; g =.6; |
| 111 | wavecode_2_enabled=0 |
| 112 | wavecode_2_samples=512 |
| 113 | wavecode_2_sep=0 |
| 114 | wavecode_2_bSpectrum=0 |
| 115 | wavecode_2_bUseDots=0 |
| 116 | wavecode_2_bDrawThick=1 |
| 117 | wavecode_2_bAdditive=0 |
| 118 | wavecode_2_scaling=0.89152 |
| 119 | wavecode_2_smoothing=0.82000 |
| 120 | wavecode_2_r=1.000 |
| 121 | wavecode_2_g=1.000 |
| 122 | wavecode_2_b=1.000 |
| 123 | wavecode_2_a=0.100 |
| 124 | wavecode_3_enabled=0 |
| 125 | wavecode_3_samples=512 |
| 126 | wavecode_3_sep=0 |
| 127 | wavecode_3_bSpectrum=1 |
| 128 | wavecode_3_bUseDots=1 |
| 129 | wavecode_3_bDrawThick=0 |
| 130 | wavecode_3_bAdditive=0 |
| 131 | wavecode_3_scaling=1.00000 |
| 132 | wavecode_3_smoothing=0.50000 |
| 133 | wavecode_3_r=1.000 |
| 134 | wavecode_3_g=1.000 |
| 135 | wavecode_3_b=1.000 |
| 136 | wavecode_3_a=1.000 |
| 137 | wave_3_per_point1=ra = .8; |
| 138 | wave_3_per_point2=rb = .5; |
| 139 | wave_3_per_point3=pib = 6.28318530718; |
| 140 | wave_3_per_point4= |
| 141 | wave_3_per_point5= |
| 142 | wave_3_per_point6=tic = min(time-tin,.1); |
| 143 | wave_3_per_point7=tin = if(equal(sample,0),time,tin); |
| 144 | wave_3_per_point8= |
| 145 | wave_3_per_point9=mod = 1.5 + .5*sin(time*.15); |
| 146 | wave_3_per_point10=med = 1.5 + .5*sin(time*.134); |
| 147 | wave_3_per_point11=med = 5; |
| 148 | wave_3_per_point12=amod = 3; |
| 149 | wave_3_per_point13= |
| 150 | wave_3_per_point14=vr = rand(10001)*.0001; |
| 151 | wave_3_per_point15=rb = rb + rand(10001)*.0001*.1; |
| 152 | wave_3_per_point16= |
| 153 | wave_3_per_point17=a = vr; |
| 154 | wave_3_per_point18= |
| 155 | wave_3_per_point19=sa = vr*pib*.5; |
| 156 | wave_3_per_point20=sp = sa*mod + q1*1.3; |
| 157 | wave_3_per_point21=sam = sa*med - q1*.219; |
| 158 | wave_3_per_point22= |
| 159 | wave_3_per_point23=ox = ra*sin(sam*pib); |
| 160 | wave_3_per_point24=oy = ra*cos(sam*pib); |
| 161 | wave_3_per_point25=ox = ox + rb*-cos(sp)*sin(sam*pib); |
| 162 | wave_3_per_point26=oz = rb*-sin(sp); |
| 163 | wave_3_per_point27=oy = oy + rb*-cos(sp)*cos(sam*pib); |
| 164 | wave_3_per_point28= |
| 165 | wave_3_per_point29= |
| 166 | wave_3_per_point30=xang = time*.132; |
| 167 | wave_3_per_point31=xang = q2; |
| 168 | wave_3_per_point32=yang = time*.153; |
| 169 | wave_3_per_point33=yang = q3; |
| 170 | wave_3_per_point34=zang = time*.110; |
| 171 | wave_3_per_point35=zang = q4; |
| 172 | wave_3_per_point36=fov = 0.6 + 0.2*sin(time); |
| 173 | wave_3_per_point37=fov = .5; |
| 174 | wave_3_per_point38= |
| 175 | wave_3_per_point39=mx = ox*cos(zang) - oy*sin(zang); |
| 176 | wave_3_per_point40=my = ox*sin(zang) + oy*cos(zang); |
| 177 | wave_3_per_point41=ox = mx; |
| 178 | wave_3_per_point42=oy = my; |
| 179 | wave_3_per_point43=mx = ox*cos(yang) + oz*sin(yang); |
| 180 | wave_3_per_point44=mz = - ox*sin(yang) + oz*cos(yang); |
| 181 | wave_3_per_point45=ox = mx; |
| 182 | wave_3_per_point46=oz = mz; |
| 183 | wave_3_per_point47=my = oy*cos(xang) - oz*sin(xang); |
| 184 | wave_3_per_point48=mz = oy*sin(xang) + oz*cos(xang); |
| 185 | wave_3_per_point49=oy = my; |
| 186 | wave_3_per_point50=oz = mz; |
| 187 | wave_3_per_point51= |
| 188 | wave_3_per_point52=oz = oz - 2; |
| 189 | wave_3_per_point53=x = ox*fov/oz + 0.5; |
| 190 | wave_3_per_point54=x = (x-.5)*0.75 + 0.5; |
| 191 | wave_3_per_point55=y = oy*fov/oz + 0.5; |
| 192 | wave_3_per_point56= |
| 193 | shapecode_0_enabled=1 |
| 194 | shapecode_0_sides=18 |
| 195 | shapecode_0_additive=0 |
| 196 | shapecode_0_thickOutline=0 |
| 197 | shapecode_0_textured=1 |
| 198 | shapecode_0_num_inst=1 |
| 199 | shapecode_0_x=0.500 |
| 200 | shapecode_0_y=0.500 |
| 201 | shapecode_0_rad=0.15416 |
| 202 | shapecode_0_ang=0.00000 |
| 203 | shapecode_0_tex_ang=3.76991 |
| 204 | shapecode_0_tex_zoom=5.27784 |
| 205 | shapecode_0_r=1.000 |
| 206 | shapecode_0_g=1.000 |
| 207 | shapecode_0_b=1.000 |
| 208 | shapecode_0_a=0.700 |
| 209 | shapecode_0_r2=1.000 |
| 210 | shapecode_0_g2=1.000 |
| 211 | shapecode_0_b2=1.000 |
| 212 | shapecode_0_a2=0.000 |
| 213 | shapecode_0_border_r=1.000 |
| 214 | shapecode_0_border_g=1.000 |
| 215 | shapecode_0_border_b=0.000 |
| 216 | shapecode_0_border_a=0.000 |
| 217 | shape_0_per_frame1=tex_ang = 3+2*q1; |
| 218 | shapecode_1_enabled=1 |
| 219 | shapecode_1_sides=32 |
| 220 | shapecode_1_additive=0 |
| 221 | shapecode_1_thickOutline=0 |
| 222 | shapecode_1_textured=0 |
| 223 | shapecode_1_num_inst=1 |
| 224 | shapecode_1_x=0.500 |
| 225 | shapecode_1_y=0.500 |
| 226 | shapecode_1_rad=0.06892 |
| 227 | shapecode_1_ang=0.00000 |
| 228 | shapecode_1_tex_ang=0.00000 |
| 229 | shapecode_1_tex_zoom=1.83150 |
| 230 | shapecode_1_r=1.000 |
| 231 | shapecode_1_g=1.000 |
| 232 | shapecode_1_b=1.000 |
| 233 | shapecode_1_a=0.900 |
| 234 | shapecode_1_r2=0.000 |
| 235 | shapecode_1_g2=0.000 |
| 236 | shapecode_1_b2=0.000 |
| 237 | shapecode_1_a2=0.000 |
| 238 | shapecode_1_border_r=0.500 |
| 239 | shapecode_1_border_g=0.500 |
| 240 | shapecode_1_border_b=0.500 |
| 241 | shapecode_1_border_a=0.000 |
| 242 | shape_1_per_frame1=a = q24/2; a2 = 0; |
| 243 | shape_1_per_frame2= |
| 244 | shape_1_per_frame3=r = rand(10)/10; |
| 245 | shape_1_per_frame4=g = rand(10)/10; |
| 246 | shape_1_per_frame5=b = rand(10)/10; |
| 247 | shape_1_per_frame6= |
| 248 | shape_1_per_frame7=rad = .06*q22; |
| 249 | shapecode_2_enabled=0 |
| 250 | shapecode_2_sides=63 |
| 251 | shapecode_2_additive=0 |
| 252 | shapecode_2_thickOutline=0 |
| 253 | shapecode_2_textured=0 |
| 254 | shapecode_2_num_inst=1 |
| 255 | shapecode_2_x=0.123 |
| 256 | shapecode_2_y=0.000 |
| 257 | shapecode_2_rad=0.27319 |
| 258 | shapecode_2_ang=0.00000 |
| 259 | shapecode_2_tex_ang=0.00000 |
| 260 | shapecode_2_tex_zoom=0.49981 |
| 261 | shapecode_2_r=1.000 |
| 262 | shapecode_2_g=1.000 |
| 263 | shapecode_2_b=1.000 |
| 264 | shapecode_2_a=1.000 |
| 265 | shapecode_2_r2=1.000 |
| 266 | shapecode_2_g2=1.000 |
| 267 | shapecode_2_b2=1.000 |
| 268 | shapecode_2_a2=0.000 |
| 269 | shapecode_2_border_r=0.500 |
| 270 | shapecode_2_border_g=0.500 |
| 271 | shapecode_2_border_b=0.500 |
| 272 | shapecode_2_border_a=0.000 |
| 273 | shape_2_per_frame1=x = .5 + .1* sin (time*73); |
| 274 | shape_2_per_frame2=y = .5 + .1* sin (time*23); |
| 275 | shape_2_per_frame3= |
| 276 | shape_2_per_frame4=r = 0; g = 0; b = 0; |
| 277 | shape_2_per_frame5=r2 = 1; g2 = 1; b2 = 1; |
| 278 | shape_2_per_frame6= |
| 279 | shape_2_per_frame7=rad = mid_att/100; |
| 280 | shape_2_per_frame8=a = .7; |
| 281 | shape_2_per_frame9=a2 = a; |
| 282 | shapecode_3_enabled=1 |
| 283 | shapecode_3_sides=4 |
| 284 | shapecode_3_additive=0 |
| 285 | shapecode_3_thickOutline=0 |
| 286 | shapecode_3_textured=0 |
| 287 | shapecode_3_num_inst=1 |
| 288 | shapecode_3_x=0.500 |
| 289 | shapecode_3_y=0.510 |
| 290 | shapecode_3_rad=0.19869 |
| 291 | shapecode_3_ang=0.00000 |
| 292 | shapecode_3_tex_ang=1.00531 |
| 293 | shapecode_3_tex_zoom=0.49981 |
| 294 | shapecode_3_r=1.000 |
| 295 | shapecode_3_g=0.400 |
| 296 | shapecode_3_b=0.000 |
| 297 | shapecode_3_a=0.700 |
| 298 | shapecode_3_r2=1.000 |
| 299 | shapecode_3_g2=1.000 |
| 300 | shapecode_3_b2=1.000 |
| 301 | shapecode_3_a2=0.000 |
| 302 | shapecode_3_border_r=0.500 |
| 303 | shapecode_3_border_g=0.500 |
| 304 | shapecode_3_border_b=0.500 |
| 305 | shapecode_3_border_a=0.000 |
| 306 | shape_3_per_frame1=x = 0.05 + rand(900)/1000; |
| 307 | shape_3_per_frame2=y = 0.05 + rand(900)/1000; |
| 308 | shape_3_per_frame3= |
| 309 | per_frame_init_1=prox = 1; |
| 310 | per_frame_1=dec_med = pow (.4, 30/fps); |
| 311 | per_frame_2=dec_slow = pow (0.95, 30/fps); |
| 312 | per_frame_3=//dec_xlow = pow (0.999, 30/fps); |
| 313 | per_frame_4=beat = max (max (bass, mid), treb); |
| 314 | per_frame_5=avg = avg*dec_slow + beat*(1-dec_slow); |
| 315 | per_frame_6=is_beat = above(beat, -.2+avg+peak) * above (time, t0+.1); |
| 316 | per_frame_7=t0 = is_beat*time + (1-is_beat)*t0; |
| 317 | per_frame_8=peak = is_beat * beat + (1-is_beat)*peak*dec_med; |
| 318 | per_frame_9=index = (index + is_beat) %32; |
| 319 | per_frame_10=index2 = (index2 + is_beat*bnot(index))%4; |
| 320 | per_frame_11=index3 = (index2 +index3 + is_beat*bnot(index))%4; |
| 321 | per_frame_12= |
| 322 | per_frame_13=is_beat2 = above (time, t1+.1); |
| 323 | per_frame_14=t1 = is_beat*time + (1-is_beat)*t1; |
| 324 | per_frame_15=q22 = peak; |
| 325 | per_frame_16=q24 = is_beat; |
| 326 | per_frame_17=q26 = bass_att + mid_att + treb_att; |
| 327 | per_frame_18=vol = vol*dec_med + (1-dec_med)*q26; |
| 328 | per_frame_19=q27 = index + 1.5; |
| 329 | per_frame_20=q28 = index2 +1; |
| 330 | per_frame_21= |
| 331 | per_frame_22=p2 = .3*sin(time) + .3*cos(time/3); |
| 332 | per_frame_23=//*****tunnel tilting |
| 333 | per_frame_24=q1 = cos(p2 * 3.1416/4); |
| 334 | per_frame_25=q2 = sin(p2 * 3.1416/4); |
| 335 | per_frame_26=q3 = -q2; |
| 336 | per_frame_27=q4 = q1; |
| 337 | per_frame_28= |
| 338 | per_frame_29=//****tunnel viewpoint x,y |
| 339 | per_frame_30=vtrig = is_beat * bnot(index%2); |
| 340 | per_frame_31=vx = vx * bnot(vtrig) + vtrig * (rand(100)/100-.5); |
| 341 | per_frame_32=vy = vy * bnot(vtrig) + vtrig * (rand(100)/100-.5); |
| 342 | per_frame_33=vz = vz * bnot(vtrig) + vtrig * (rand(100)/100-.5); |
| 343 | per_frame_34= |
| 344 | per_frame_35=vx = vx* below(index%32,24); //### |
| 345 | per_frame_36=vy = vy* above(index%32,16); |
| 346 | per_frame_37=q5 = vx*5; |
| 347 | per_frame_38=q6 = vy*5; |
| 348 | per_frame_39= |
| 349 | per_frame_40=//***tunnel width |
| 350 | per_frame_41=q21 = (1+sin(time))/4+.05; |
| 351 | per_frame_42= |
| 352 | per_frame_43=//**floor proximity |
| 353 | per_frame_44=prox = prox - above(vy,.3)*prox*2; |
| 354 | per_frame_45=q32 = .5 + .2*prox; |
| 355 | per_frame_46=monitor = prox; |
| 356 | per_frame_47= |
| 357 | per_frame_48=//****tunnel rotation |
| 358 | per_frame_49=rota = rota +.02*below(index%16,8)/fps*30; |
| 359 | per_frame_50=rota1 = rota1*dec_med + (1-dec_med)*rota; |
| 360 | per_frame_51=q7 = rota1; |
| 361 | per_frame_52= |
| 362 | per_frame_53=//****tunnel speed |
| 363 | per_frame_54=movez = movez + .8/(1+abs(vx)+abs(vy))/fps; |
| 364 | per_frame_55=q8 = movez * (1+q21/400); |
| 365 | per_frame_56=//dyn. Aenderung von q21 bewirkt auch Richt.wechsel |
| 366 | per_frame_57= |
| 367 | per_frame_58=q15 = -1+8*above(index,26); |
| 368 | per_frame_59=//*********************** |
| 369 | per_frame_60=vxs = vxs * dec_med + (1-dec_med)*vx*20; |
| 370 | per_frame_61=vys = vys * dec_med + (1-dec_med)*vy*20; |
| 371 | per_frame_62=vzs = vzs * dec_med + (1-dec_med)*vz*20; |
| 372 | per_frame_63= |
| 373 | per_frame_64=z0 = 20+vzs; |
| 374 | per_frame_65= |
| 375 | per_frame_66=p1z = z0; |
| 376 | per_frame_67=q9 = vxs/(p1z); |
| 377 | per_frame_68=q10 = vys/(p1z); |
| 378 | per_frame_69=q11 = p1z; |
| 379 | per_frame_70= |
| 380 | per_frame_71=q12 = below (index,24); |
| 381 | per_frame_72=q13 = above (index,16); |
| 382 | per_frame_73= |
| 383 | warp_1=`float3 color, mus; |
| 384 | warp_2=`float dx,dy; |
| 385 | warp_3=`shader_body { |
| 386 | warp_4=` |
| 387 | warp_5=`float2 uv1 = (uv-.5);// * aspect.xy; |
| 388 | warp_6=` |
| 389 | warp_7=`float2 uv6 = uv1; |
| 390 | warp_8=`float z = q28*4*length((abs(uv1.x)-abs(uv1.y))); |
| 391 | warp_9=`float2 d = normalize(uv1); |
| 392 | warp_10=`float2 rs = clamp(tan(z)*d,-2,2); |
| 393 | warp_11=`uv1 -= rs/40; |
| 394 | warp_12=` |
| 395 | warp_13=`uv6 = .4*cos(uv1*4+time); |
| 396 | warp_14=`mus = .005/(length(uv6)); |
| 397 | warp_15=` |
| 398 | warp_16=`float3 crisp= tex2D(sampler_main,(uv1)*(.95-q28/16+.4*z)+.5); |
| 399 | warp_17=` |
| 400 | warp_18=`float3 ret1 = crisp + mus; |
| 401 | warp_19=` |
| 402 | warp_20=`ret = (ret1*.99-.03); |
| 403 | warp_21=` |
| 404 | warp_22=`} |
| 405 | comp_1=`sampler sampler_pw_noise_lq; |
| 406 | comp_2=` |
| 407 | comp_3=`float k1, k2, mask1, mask2, mask3, rad1, rad2, rad3; |
| 408 | comp_4=`float2 rs, rss, rss0, rs0, uv2, uv3,uv4, rsk, uvo; |
| 409 | comp_5=`float2 dz1, dz2, dz3, Kugel1, Kugel2, Kugel3,tmp; |
| 410 | comp_6=`float3 noise, ret1, ret2, cathed, sky, fire; |
| 411 | comp_7=` |
| 412 | comp_8=`shader_body { |
| 413 | comp_9=`uvo = uv*aspect.xy; |
| 414 | comp_10=`uv = mul(uv*aspect.xy,float2x2(_qa)); |
| 415 | comp_11=`uv = uv + -.0- .2*float2(q5,q6); |
| 416 | comp_12=`float2 uv1 = (uv-.5 );//*aspect.xy; |
| 417 | comp_13=` |
| 418 | comp_14=`//Kugel1 |
| 419 | comp_15=`rsk = (uv1 + float2 (q9,q10)) ; |
| 420 | comp_16=`dz1 = normalize(rsk); |
| 421 | comp_17=`rad1 = q11*length (rsk) ; |
| 422 | comp_18=`uv4 = tan(rad1)*dz1; |
| 423 | comp_19=`mask1 = saturate(8-8*rad1); |
| 424 | comp_20=`Kugel1 = uv4*mask1*8/q11; |
| 425 | comp_21=`uv1 += Kugel1*.1; |
| 426 | comp_22=` |
| 427 | comp_23=`//Kugel2 |
| 428 | comp_24=`rsk = (sin(q27*atan2(uv1.x,uv1.y)/2)) ; |
| 429 | comp_25=`dz2 = normalize(rsk); |
| 430 | comp_26=`rad2 = 1*length (rsk) ; |
| 431 | comp_27=`uv4 = tan(rad2)*dz2; |
| 432 | comp_28=`mask2 = saturate(8-8*rad2); |
| 433 | comp_29=`Kugel2 = uv4*mask2; |
| 434 | comp_30=` |
| 435 | comp_31=`//Kugel3 |
| 436 | comp_32=`float argu = length(uv1+q5*uv1.y); |
| 437 | comp_33=`rsk = (sin(.1*(q27-8)/ argu)); |
| 438 | comp_34=`//rsk = (sin(.5*q27*atan2(uv1.x,uv1.y))) ; |
| 439 | comp_35=`dz3 = normalize(rsk); |
| 440 | comp_36=`rad3 = 1*length (rsk) ; |
| 441 | comp_37=`uv4 = tan(-rad3)*dz3; |
| 442 | comp_38=`mask3 = saturate(8-8*rad3); |
| 443 | comp_39=`Kugel3 = uv4*mask3; |
| 444 | comp_40=` |
| 445 | comp_41=`float2 dz = (Kugel1 + q12*Kugel2*length(uv1) + q13*Kugel3*argu); |
| 446 | comp_42=`//******************** STARS |
| 447 | comp_43=`rss0.x = atan2(uv1.x, uv1.y)/3.1416; |
| 448 | comp_44=`rss0.y = .01/(length (uv1)); |
| 449 | comp_45=` |
| 450 | comp_46=`rss = float2 (rss0.x,rss0.y+time/2)+dz; |
| 451 | comp_47=`rss = mul(rss,float2x2(.7,.7,-.7,.7)); |
| 452 | comp_48=`float noise = (tex2D(sampler_pw_noise_lq,rss/32)-.8 >= 0); |
| 453 | comp_49=`tmp = abs(frac(rss*8)-.5); |
| 454 | comp_50=` |
| 455 | comp_51=`//************************* |
| 456 | comp_52=`uv1 -= dz*.5; |
| 457 | comp_53=`float z = .2/(length(uv1)+q21); |
| 458 | comp_54=`uv2.y = z + q8; |
| 459 | comp_55=`uv2.x = rss0.x +q7; |
| 460 | comp_56=`uv3 =frac(uv2); |
| 461 | comp_57=`cathed = tex2D (sampler_main,uv3+.4*dz)*12; |
| 462 | comp_58=` |
| 463 | comp_59=`float mod = (q22+1)/6; |
| 464 | comp_60=` |
| 465 | comp_61=`//Deckenbeleuchtung: |
| 466 | comp_62=`fire = saturate(.05*q22/length (uv1)* |
| 467 | comp_63=` (lum(tex2D (sampler_main,uv3+.0)))) ; |
| 468 | comp_64=` |
| 469 | comp_65=`//Tasaechl. Feuer; Problem: uv1 passt nicht zu uv3 |
| 470 | comp_66=`fire += saturate(.02*q22/length (uv1)* |
| 471 | comp_67=` (lum(tex2D (sampler_main,uv1+.5))))/length(uv1); |
| 472 | comp_68=` |
| 473 | comp_69=`k1 = lum(fire); |
| 474 | comp_70=`fire = k1*float3(1,k1*.8,k1*k1/3) ; |
| 475 | comp_71=` |
| 476 | comp_72=`uvo+=dz; |
| 477 | comp_73=`sky = saturate (.02/length(uvo-.3)) * 1; |
| 478 | comp_74=` |
| 479 | comp_75=`float3 dots = saturate(.04/length(tmp)) *noise; |
| 480 | comp_76=`dots *= saturate(.2/abs(rss0.y)); |
| 481 | comp_77=`dots = saturate(lum(dots)*lum(dots)*1); |
| 482 | comp_78=`k1 = lum(dots); |
| 483 | comp_79=`dots= k1*float3(1,k1*.8,k1*k1/3) *2 ; |
| 484 | comp_80=`float cmask = saturate(1-16*lum(GetBlur1(frac(uv3)))); |
| 485 | comp_81=`ret += sky * cmask; |
| 486 | comp_82=`ret += fire+dots; |
| 487 | comp_83=` |
| 488 | comp_84=`ret += sky*cathed/2; |
| 489 | comp_85=`float dis = length(uv1); |
| 490 | comp_86=`float crot = sin((dis+time)*12); |
| 491 | comp_87=`float3 blk = mod * float3 (crot,1-crot,2-dis)*dis; |
| 492 | comp_88=`blk *= (q12*(1/rad2+q15*mask2)+q13*(1/rad3+q15*mask3))/2 ; |
| 493 | comp_89=`blk += q22/rad1*roam_cos-mask1/4 ; |
| 494 | comp_90=`ret += blk; |
| 495 | comp_91=` |
| 496 | comp_92=`} |